package com.neusoft.yuejian_01.service;


import com.neusoft.yuejian_01.javabean.UserBean;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;





public interface UserService {
    @GET("User/login/")
    Call<UserBean> userLogin(@Query("u_name") String username,
                             @Query("u_pass") String userpass);




    @GET("User/reg/")
    Call<UserBean> userReg(@Query("u_name") String et_username,
                           @Query("u_pass") String et_userpass,
                           @Query("u_phone") String et_mobilenum);


    @GET("User/getUserInfo")
    Call<UserBean> userInfo(@Query("u_id") int u_id
    );



    @GET("User/updateuser")
    Call<UserBean>  updateInfo(@Query("u_id") int u_id,
                               @Query("u_name") String u_name,
                               @Query("u_pass") String u_pass,
                               @Query("u_phone") String u_phone,
                               @Query("u_address") String u_address,
                               @Query("u_email") String u_email
    );




}

